'''
散点图
'''

import matplotlib.pyplot as mp
import numpy as np

n = 200
#175,65:期望值  5,10:标准差   n：数量
x = np.random.normal(175,5,n)
y = np.random.normal(65,10,n)

mp.figure('Scatter',facecolor='gray')
mp.title('Scatter',fontsize= 16)
mp.grid(linestyle = ":")
#cmap:颜色的映射， jet表示从蓝到红，x越大，则越靠近红色 ,c=x:基于横坐标，即从左到右
mp.scatter(x,y,marker='o',alpha=0.7,label='Samples',s = 80,c=x,cmap='jet')

mp.legend()
mp.show()